package com.lipaluma.examples.annotation.invoices;

import java.util.List;

import com.lipaluma.annotations.mapping.MapColumn;
import com.lipaluma.annotations.merge.Id;
import com.lipaluma.annotations.merge.MergeTarget;
import com.lipaluma.annotations.merge.OneToMany;

@MergeTarget
@CSV(delimiter=';', hasHeader=true)
public class ClientById {

	@Id
	@MapColumn(index=1)
	private Long id;

	@MapColumn(index=2)
	private String name;
	
//	@Merge(FieldMergedAlgorithmEnum.ADD_ALL)
	@OneToMany
	private List<Invoice> invoices;

	public Long getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public List<Invoice> getInvoices() {
		return invoices;
	}
}
